﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ueditor_config.aspx.cs" Inherits="Smy.Web.Admin.settings.ueditor_config" %>


<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>系统参数设置</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
        });
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>系统参数设置</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected" href="javascript:;">上传图片配置</a></li>
                        <li><a href="javascript:;">涂鸦上传配置</a></li>
                        <li><a href="javascript:;">截图上传配置</a></li>
                        <li><a href="javascript:;">抓取图片配置</a></li>
                        <li><a href="javascript:;">上传视频配置</a></li>
                        <li><a href="javascript:;">上传文件配置</a></li>
                        <li><a href="javascript:;">列出图片配置</a></li>
                        <li><a href="javascript:;">列出文件配置</a></li>
                        <li><a href="javascript:;">图片水印设置</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <!--主站基本信息-->
        <div class="tab-content">
            <dl>
                <dt>action名称</dt>
                <dd>
                    <asp:TextBox ID="imageActionName" runat="server" CssClass="input normal" datatype="/^[a-zA-Z0-9\_]{2,50}$/" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                    <span>执行上传图片的action名称</span>
                </dd>
            </dl>
            <dl>
                <dt>表单名称</dt>
                <dd>
                    <asp:TextBox ID="imageFieldName" runat="server" CssClass="input normal" datatype="/^[a-zA-Z0-9\_]{2,50}$/" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                    <span>提交的图片表单名称</span>
                </dd>
            </dl>
            <dl>
                <dt>大小限制</dt>
                <dd>
                    <asp:TextBox ID="imageMaxSize" runat="server" CssClass="input normal" datatype="n" />
                    <span class="Validform_checktip">*</span>
                    <span>上传大小限制，单位B</span>
                </dd>
            </dl>
            <dl>
                <dt>格式显示</dt>
                <dd>
                    <asp:TextBox ID="imageAllowFiles" runat="server" CssClass="input normal" />
                    <span>上传图片格式显示</span>
                </dd>
            </dl>
            <dl>
                <dt>压缩图片</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="imageCompressEnable" runat="server" />
                    </div>
                    <span class="Validform_checktip">*</span>
                    <span>是否压缩图片,默认是true</span>
                </dd>
            </dl>
            <dl>
                <dt>压缩最长边限制</dt>
                <dd>
                    <asp:TextBox ID="imageCompressBorder" runat="server" CssClass="input normal" datatype="n" Text="1600" />
                    <span class="Validform_checktip">*</span>
                    <span>图片压缩最长边限制</span>
                </dd>
            </dl>
            <dl>
                <dt>图片浮动方式</dt>
                <dd>
                    <div class="rule-multi-radio">
                    <asp:RadioButtonList ID="imageInsertAlign" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="none">默认</asp:ListItem>
                    <asp:ListItem Value="left">向左</asp:ListItem>
                    <asp:ListItem Value="right">向右</asp:ListItem>
                    <asp:ListItem Value="center">居中</asp:ListItem>
                    </asp:RadioButtonList>
                  </div>
                    <span class="Validform_checktip">*</span>
                    <span>插入的图片浮动方式</span>
                </dd>
            </dl>
            <dl>
                <dt>访问路径前缀</dt>
                <dd>
                    <asp:TextBox ID="imageUrlPrefix" runat="server" CssClass="input normal" datatype="/^\s*$|^[a-zA-Z0-9\_]{2,50}$/" />
                    <span>imageUrlPrefix</span>
                </dd>
            </dl>
            <dl>
                <dt>保存路径</dt>
                <dd>
                    <asp:TextBox ID="imagePathFormat" runat="server" CssClass="input normal" />
                    <span>上传保存路径,可以自定义保存路径和文件名格式</span>
                    <p>&nbsp;{filename} 会替换成原文件名,配置这项需要注意中文乱码问题 </p>
                    <p>&nbsp;{rand:6} 会替换成随机数,后面的数字是随机数的位数 </p>
                    <p>&nbsp;{time} 会替换成时间戳 </p>
                    <p>&nbsp;{yyyy} 会替换成四位年份 </p>
                    <p>&nbsp;{yy} 会替换成两位年份 </p>
                    <p>&nbsp;{mm} 会替换成两位月份 </p>
                    <p>&nbsp;{dd} 会替换成两位日期 </p>
                    <p>&nbsp;{hh} 会替换成两位小时 </p>
                    <p>&nbsp;{ii} 会替换成两位分钟 </p>
                    <p>&nbsp;{ss} 会替换成两位秒 </p>
                    <p>&nbsp;非法字符 \ : * ? " < > | </p>
                    <p>&nbsp;具请体看线上文档: fex.baidu.com/ueditor/#use-format_upload_filename </p>
                </dd>
            </dl>
        </div>
        <!--/网站基本信息-->


        <!--功能权限设置-->
        <div class="tab-content" style="display: none">
            <dl>
                <dt>action名称</dt>
                <dd>
                    <asp:TextBox ID="scrawlActionName" runat="server" CssClass="input txt" datatype="*1-100" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                    <span>执行上传涂鸦的action名称</span>
                </dd>
            </dl>
            <dl>
                <dt>表单名称</dt>
                <dd>
                    <asp:TextBox ID="scrawlFieldName" runat="server" CssClass="input txt" datatype="*1-100" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                    <span>提交的图片表单名称</span>
                </dd>
            </dl>
            <dl>
                <dt>保存路径</dt>
                <dd>
                    <asp:TextBox runat="server" ID="scrawlPathFormat" CssClass="input txt" />
                    <span class="Validform_checktip">*</span>
                    <span>上传保存路径,可以自定义保存路径和文件名格式</span>
                </dd>
            </dl>
            <dl>
                <dt>大小限制</dt>
                <dd>
                    <asp:TextBox ID="scrawlMaxSize" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                    <span>上传大小限制，单位B </span>
                </dd>
            </dl>
            <dl>
                <dt>路径前缀</dt>
                <dd>
                    <asp:TextBox ID="scrawlUrlPrefix" runat="server" CssClass="input small" datatype="/^\s*$|^[a-zA-Z0-9\_]{2,50}$/" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                    <span>图片访问路径前缀</span>
                </dd>
            </dl>
            <dl>
                <dt>图片浮动</dt>
                <dd>
                    <div class="rule-multi-radio">
                    <asp:RadioButtonList ID="scrawlInsertAlign" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="none">默认</asp:ListItem>
                    <asp:ListItem Value="left">向左</asp:ListItem>
                    <asp:ListItem Value="right">向右</asp:ListItem>
                    <asp:ListItem Value="center">居中</asp:ListItem>
                    </asp:RadioButtonList>
                  </div>
                    <span class="Validform_checktip">*</span>
                    <span>插入的图片浮动方式</span>
                </dd>
            </dl>
            <%--<dl>
                <dt>开启管理日志</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="logstatus" runat="server" />
                    </div>
                    <span class="Validform_checktip">*开启后将会记录管理员在后台的操作日志</span>
                </dd>
            </dl>
            <dl>
                <dt>是否开启网站</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="webstatus" runat="server" />
                    </div>
                    <span class="Validform_checktip">*关闭后网站前台将不能访问</span>
                </dd>
            </dl>
            <dl>
                <dt>网站关闭原因</dt>
                <dd>
                    <asp:TextBox ID="webclosereason" runat="server" CssClass="input" TextMode="MultiLine" />
                    <span class="Validform_checktip">支持HTML</span>
                </dd>
            </dl>
            <dl>
                <dt>网站统计代码</dt>
                <dd>
                    <asp:TextBox ID="webcountcode" runat="server" CssClass="input" TextMode="MultiLine" />
                    <span class="Validform_checktip">支持HTML</span>
                </dd>
            </dl>--%>
        </div>
        <!--/功能权限设置-->

       <%-- <!--手机短信设置-->
        <div class="tab-content" style="display: none">

            <dl>
                <dt>应用ID</dt>
                <dd>
                    <asp:TextBox ID="appkey" runat="server" CssClass="input txt" />
                    <span class="Validform_checktip">*短信平台注册的用户名</span>
                </dd>
            </dl>
            <dl>
                <dt>应用密钥</dt>
                <dd>
                    <asp:TextBox ID="appsecret" runat="server" CssClass="input txt" TextMode="Password" />
                    <span class="Validform_checktip">*短信平台注册的密码</span>
                </dd>
            </dl>
            <dl>
                <dt>短信签名</dt>
                <dd>
                    <asp:TextBox ID="smssign" runat="server" CssClass="input txt" />
                    <span class="Validform_checktip">*短信签名，添加后可即时发送短信</span>
                </dd>
            </dl>
            <dl>
                <dt>短信剩余数量</dt>
                <dd>
                    <asp:Label ID="labSmsCount" runat="server" />
                    <span class="Validform_checktip">尚未申请？<a href="http://sms.net" target="_blank">请点击这里注册</a></span>
                </dd>
            </dl>
        </div>
        <!--/手机短信设置-->

        <!--邮件发送设置-->
        <div class="tab-content" style="display: none">
            <dl>
                <dt>SMTP服务器</dt>
                <dd>
                    <asp:TextBox ID="emailsmtp" runat="server" CssClass="input normal" datatype="*0-100" sucmsg=" " />
                    <span class="Validform_checktip">*发送邮件的SMTP服务器地址</span>
                </dd>
            </dl>
            <dl>
                <dt>SSL加密连接</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="emailssl" runat="server" />
                    </div>
                    <span class="Validform_checktip">*是否启用SSL加密连接</span>
                </dd>
            </dl>
            <dl>
                <dt>SMTP端口</dt>
                <dd>
                    <asp:TextBox ID="emailport" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    <span class="Validform_checktip">*SMTP服务器的端口，大部分服务商都支持25端口</span>
                </dd>
            </dl>
            <dl>
                <dt>发件人地址</dt>
                <dd>
                    <asp:TextBox ID="emailfrom" runat="server" CssClass="input normal" datatype="e" sucmsg=" " />
                    <span class="Validform_checktip">*发件人的邮箱地址</span>
                </dd>
            </dl>
            <dl>
                <dt>邮箱账号</dt>
                <dd>
                    <asp:TextBox ID="emailusername" runat="server" CssClass="input normal" datatype="*0-100" sucmsg=" " />
                    <span class="Validform_checktip">*</span>
                </dd>
            </dl>
            <dl>
                <dt>邮箱密码</dt>
                <dd>
                    <asp:TextBox ID="emailpassword" runat="server" CssClass="input normal" datatype="*0-100" sucmsg=" " TextMode="Password" />
                    <span class="Validform_checktip">*</span>
                </dd>
            </dl>
            <dl>
                <dt>发件人昵称</dt>
                <dd>
                    <asp:TextBox ID="emailnickname" runat="server" CssClass="input normal" datatype="*0-50" sucmsg=" " />
                    <span class="Validform_checktip">*对方收到邮件时显示的昵称</span>
                </dd>
            </dl>
        </div>
        <!--/邮件发送设置-->

        <!--上传配置-->
        <div class="tab-content" style="display: none">
            <dl>
                <dt>文件上传目录</dt>
                <dd>
                    <asp:TextBox ID="filepath" runat="server" CssClass="input txt" datatype="*2-100" sucmsg=" " />
                    <span class="Validform_checktip">*文件保存的目录名，自动创建根目录下</span>
                </dd>
            </dl>
            <dl>
                <dt>文件保存方式</dt>
                <dd>
                    <div class="rule-single-select">
                        <asp:DropDownList ID="filesave" runat="server" datatype="*" sucmsg=" ">
                            <asp:ListItem Value="1">按年月日每天一个目录</asp:ListItem>
                            <asp:ListItem Value="2" Selected="True">按年月/日/存入不同目录</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>文件上传类型</dt>
                <dd>
                    <asp:TextBox ID="fileextension" runat="server" CssClass="input normal" datatype="*1-500" sucmsg=" " />
                    <span class="Validform_checktip">*以英文的逗号分隔开，如：“zip,rar”</span>
                </dd>
            </dl>
            <dl>
                <dt>视频上传类型</dt>
                <dd>
                    <asp:TextBox ID="videoextension" runat="server" CssClass="input normal" datatype="*1-500" sucmsg=" " />
                    <span class="Validform_checktip">*以英文的逗号分隔开，如：“mp4,flv”</span>
                </dd>
            </dl>
            <dl>
                <dt>附件上传大小</dt>
                <dd>
                    <asp:TextBox ID="attachsize" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    KB
      <span class="Validform_checktip">*超过设定的文件大小不予上传，0不限制</span>
                </dd>
            </dl>
            <dl>
                <dt>视频上传大小</dt>
                <dd>
                    <asp:TextBox ID="videosize" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    KB
      <span class="Validform_checktip">*超过设定的文件大小不予上传，0不限制</span>
                </dd>
            </dl>
            <dl>
                <dt>图片上传大小</dt>
                <dd>
                    <asp:TextBox ID="imgsize" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    KB
      <span class="Validform_checktip">*超过设定的图片大小不予上传，0不限制</span>
                </dd>
            </dl>
            <dl>
                <dt>图片最大尺寸</dt>
                <dd>
                    <asp:TextBox ID="imgmaxheight" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    ×
      <asp:TextBox ID="imgmaxwidth" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    px
      <span class="Validform_checktip">*左边高度，右边宽度，超出自动裁剪，0为不受限制</span>
                </dd>
            </dl>
            <dl>
                <dt>缩略图生成尺寸</dt>
                <dd>
                    <asp:TextBox ID="thumbnailheight" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    ×
      <asp:TextBox ID="thumbnailwidth" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    px
      <span class="Validform_checktip">*左边高度，右边宽度，0为不生成缩略图</span>
                </dd>
            </dl>
            <dl>
                <dt>图片水印类型</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="watermarktype" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0">关闭水印</asp:ListItem>
                            <asp:ListItem Value="1">文字水印</asp:ListItem>
                            <asp:ListItem Value="2">图片水印</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>图片水印位置</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="watermarkposition" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1">左上</asp:ListItem>
                            <asp:ListItem Value="2">中上</asp:ListItem>
                            <asp:ListItem Value="3">右上</asp:ListItem>
                            <asp:ListItem Value="4">左中</asp:ListItem>
                            <asp:ListItem Value="5">居中</asp:ListItem>
                            <asp:ListItem Value="6">右中</asp:ListItem>
                            <asp:ListItem Value="7">左下</asp:ListItem>
                            <asp:ListItem Value="8">中下</asp:ListItem>
                            <asp:ListItem Value="9">右下</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>图片生成质量</dt>
                <dd>
                    <asp:TextBox ID="watermarkimgquality" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    <span class="Validform_checktip">*只适用于加水印的jpeg格式图片.取值范围 0-100, 0质量最低, 100质量最高, 默认80</span>
                </dd>
            </dl>
            <dl>
                <dt>图片水印文件</dt>
                <dd>
                    <asp:TextBox ID="watermarkpic" runat="server" CssClass="input txt" datatype="s2-100" sucmsg=" " />
                    <span class="Validform_checktip">*需存放在站点目录下，如图片不存在将使用文字水印</span>
                </dd>
            </dl>
            <dl>
                <dt>水印透明度</dt>
                <dd>
                    <asp:TextBox ID="watermarktransparency" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    <span class="Validform_checktip">*取值范围1--10 (10为不透明)</span>
                </dd>
            </dl>
            <dl>
                <dt>水印文字</dt>
                <dd>
                    <asp:TextBox ID="watermarktext" runat="server" CssClass="input txt" datatype="s2-100" sucmsg=" " />
                    <span class="Validform_checktip">*文字水印的内容</span>
                </dd>
            </dl>
            <dl>
                <dt>文字字体</dt>
                <dd>
                    <div class="rule-single-select up">
                        <asp:DropDownList ID="watermarkfont" runat="server">
                            <asp:ListItem Value="Arial">Arial</asp:ListItem>
                            <asp:ListItem Value="Arial Black">Arial Black</asp:ListItem>
                            <asp:ListItem Value="Batang">Batang</asp:ListItem>
                            <asp:ListItem Value="BatangChe">BatangChe</asp:ListItem>
                            <asp:ListItem Value="Comic Sans MS">Comic Sans MS</asp:ListItem>
                            <asp:ListItem Value="Courier New">Courier New</asp:ListItem>
                            <asp:ListItem Value="Dotum">Dotum</asp:ListItem>
                            <asp:ListItem Value="DotumChe">DotumChe</asp:ListItem>
                            <asp:ListItem Value="Estrangelo Edessa">Estrangelo Edessa</asp:ListItem>
                            <asp:ListItem Value="Franklin Gothic Medium">Franklin Gothic Medium</asp:ListItem>
                            <asp:ListItem Value="Gautami">Gautami</asp:ListItem>
                            <asp:ListItem Value="Georgia">Georgia</asp:ListItem>
                            <asp:ListItem Value="Gulim">Gulim</asp:ListItem>
                            <asp:ListItem Value="GulimChe">GulimChe</asp:ListItem>
                            <asp:ListItem Value="Gungsuh">Gungsuh</asp:ListItem>
                            <asp:ListItem Value="GungsuhChe">GungsuhChe</asp:ListItem>
                            <asp:ListItem Value="Impact">Impact</asp:ListItem>
                            <asp:ListItem Value="Latha">Latha</asp:ListItem>
                            <asp:ListItem Value="Lucida Console">Lucida Console</asp:ListItem>
                            <asp:ListItem Value="Lucida Sans Unicode">Lucida Sans Unicode</asp:ListItem>
                            <asp:ListItem Value="Mangal">Mangal</asp:ListItem>
                            <asp:ListItem Value="Marlett">Marlett</asp:ListItem>
                            <asp:ListItem Value="Microsoft Sans Serif">Microsoft Sans Serif</asp:ListItem>
                            <asp:ListItem Value="MingLiU">MingLiU</asp:ListItem>
                            <asp:ListItem Value="MS Gothic">MS Gothic</asp:ListItem>
                            <asp:ListItem Value="MS Mincho">MS Mincho</asp:ListItem>
                            <asp:ListItem Value="MS PGothic">MS PGothic</asp:ListItem>
                            <asp:ListItem Value="MS PMincho">MS PMincho</asp:ListItem>
                            <asp:ListItem Value="MS UI Gothic">MS UI Gothic</asp:ListItem>
                            <asp:ListItem Value="MV Boli">MV Boli</asp:ListItem>
                            <asp:ListItem Value="Palatino Linotype">Palatino Linotype</asp:ListItem>
                            <asp:ListItem Value="PMingLiU">PMingLiU</asp:ListItem>
                            <asp:ListItem Value="Raavi">Raavi</asp:ListItem>
                            <asp:ListItem Value="Shruti">Shruti</asp:ListItem>
                            <asp:ListItem Value="Sylfaen">Sylfaen</asp:ListItem>
                            <asp:ListItem Value="Symbol">Symbol</asp:ListItem>
                            <asp:ListItem Value="Tahoma" Selected="True">Tahoma</asp:ListItem>
                            <asp:ListItem Value="Times New Roman">Times New Roman</asp:ListItem>
                            <asp:ListItem Value="Trebuchet MS">Trebuchet MS</asp:ListItem>
                            <asp:ListItem Value="Tunga">Tunga</asp:ListItem>
                            <asp:ListItem Value="Verdana">Verdana</asp:ListItem>
                            <asp:ListItem Value="Webdings">Webdings</asp:ListItem>
                            <asp:ListItem Value="Wingdings">Wingdings</asp:ListItem>
                            <asp:ListItem Value="仿宋_GB2312">仿宋_GB2312</asp:ListItem>
                            <asp:ListItem Value="宋体">宋体</asp:ListItem>
                            <asp:ListItem Value="新宋体">新宋体</asp:ListItem>
                            <asp:ListItem Value="楷体_GB2312">楷体_GB2312</asp:ListItem>
                            <asp:ListItem Value="黑体">黑体</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <asp:TextBox ID="watermarkfontsize" runat="server" CssClass="input small" datatype="n" sucmsg=" " />
                    px
      <span class="Validform_checktip">*文字水印的字体和大小 </span>
                </dd>
            </dl>
        </div>--%>
        <!--/上传配置-->

        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
